package com.qingzhuge.manager.dto.response;


import com.qingzhuge.common.enums.ERoleType;
import com.qingzhuge.dto.response.BaseResponsePkLongDto;
import com.qingzhuge.manager.entity.SysDept;
import com.qingzhuge.resource.entity.SysResource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * @author : zero.xiao
 * @description : 角色
 * @date :2018/6/8 0008 下午 15:01
 * @modified :
 * @since : 1.0.0
 */
@Setter
@Getter
@ApiModel("角色")
public class SysRoleResponseDto extends BaseResponsePkLongDto {
    private static final long serialVersionUID = -7523552506077974207L;

    @ApiModelProperty("类型")
    private ERoleType type;
    @ApiModelProperty("超级角色，只能有一个")
    private Boolean root;
    @ApiModelProperty("部门")
    private SysDept dept;
    @ApiModelProperty("权限")
    private List<SysResource> resources = new ArrayList<>();
    @Transient
    private String permission;
}
